package com.quzhi.sys.service;

import com.quzhi.common.Result;
import com.quzhi.sys.dto.OrderDto;
import com.quzhi.sys.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.quzhi.sys.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Xibing
 * @since 2024-06-29
 */
public interface IOrderService extends IService<Order> {
    Result<?> addOrder(Order order);

    void updateOrderById(Order order);

    Result<?> updateOrderStatusByIds(List<String> ids, String statusCode, String token);


    // 批量更新订单库存状态
    void updateOrderStockStatusByIds(List<String> ids, String statusCode, String token);



    List<OrderDto> getOrderList(OrderDto order);

    Integer getTotal(String orderStatus);



}
